package cn.javasm.common.page;

import lombok.Data;

import java.util.List;

/**
 * @version: 0.1
 */
@Data
public class PageBean<T> {

    private Long total;

    private List<T> data;

    private PageBean(Long total,List<T> data){
        this.total = total;
        this.data = data;
    }


    public static <T> PageBean<T> initData(Long total,List<T> data){
        return new PageBean<>(total,data);
    }
}
